package org.lyxy.ssmdemo.dao;

import org.apache.ibatis.annotations.Param;
import org.lyxy.ssmdemo.bean.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {


    public User loginUser(String name);

    public List<User> selectUserByPage(@Param("startIndex") int startIndex, @Param("pageSize") int pageSize);

    public int selectCountPage();

    public int insertUser(User user);

    public int selectByEmail(User user) ;
}
